<%@ page import="com.lanqiao.guimei.dao.CateGoryDao" %>
<%@ page import="com.lanqiao.guimei.vo.Category" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Lu
  Date: 2019/8/13/013
  Time: 19:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--<%--%>
    <%--List<Category> list1 = new CateGoryDao().queryByBigCtgr("家电");--%>
    <%--List<Category> list2 = new CateGoryDao().queryByBigCtgr("服饰箱包");--%>
    <%--List<Category> list3 = new CateGoryDao().queryByBigCtgr("手机");--%>
    <%--List<Category> list4 = new CateGoryDao().queryByBigCtgr("数码");--%>
    <%--session.setAttribute("list1",list1);--%>
    <%--session.setAttribute("list2",list2);--%>
    <%--session.setAttribute("list3",list3);--%>
    <%--session.setAttribute("list4",list4);--%>



<%--%>--%>
<html>

<head>
    <base href="${pageContext.request.contextPath}/">
    <title>头部</title>
    <script src="js/front-js/front-head.js"></script>
    <link rel="stylesheet" href="css/front/front-head.css">
    <link rel="stylesheet" href="css/bootstrapcss/bootstrap.css">
    <script src="js/jquery-2.2.4.js"></script>
    <style>
        .btn-search {
            color: #FFFFFF;
            background-color: #FF5000;
            cursor: pointer;
            height: 38px;
            border: none;
            padding-top: 5px;
            width: 160%;
            border-bottom-right-radius: 20px;
            border-top-right-radius: 20px;
        }

        .btn-search2 {
            text-align: center;
            font-weight: 700;
            color: #FF5000;
            background-color: #fff;
            cursor: pointer;
            height: 38px;
            border: none;
            width: 100%;
            border-top-left-radius: 20px;
            border-bottom-left-radius: 20px;
        }
        .head-font-color ul li a{
            padding-top: 15px;
            width: 88px;
            height: 57px;
        }

        .head-font-color li a {
            text-align: center;
            color: #ffffff;
            line-height: 35px;
        }

        .head-font-color ul li a:hover {
            background-color: black;
            border-style: none;
            outline: none;
        }


        .head-font-color li ul {
            color: red;
            display: none;
        }

        .head-font-color li {
            color: #e2e2e2;
            cursor: pointer;
        }

        table a:hover {
            color: red;

        }

        .fornt-list {
            display: flex;
        }

        .list1 {
            position: absolute; /*设置为绝对定位*/
            width: 280px;
            z-index: 10000;
            background-image: url("image/t4.jpg");
        }
        .list1 a{
            color: black;

            text-decoration:none;
        }
        .list1 a:hover{
            color: #FF5000;
            cursor: none;
        }
        .list1 table {
            width: 230px;
            background-color: #e8e8e8;
        }


    </style>
    <script>
        $(function () {
            $('#list1').hide();
            $('#list2').hide();
            $('#list3').hide();
            $('#list4').hide();

            $('#head1').hover(function () {
                $('#list1').show();
            }, function () {
                $('#list1').hide();
            });
            $('#list1').hover(function () {
                $('#list1').show();
            }, function () {
                $('#list1').hide();
            });

            $('#head2').hover(function () {
                $('#list2').show();
            }, function () {
                $('#list2').hide();
            });
            $('#list2').hover(function () {
                $('#list2').show();
            }, function () {
                $('#list2').hide();
            });

            $('#head3').hover(function () {
                $('#list3').show();
            }, function () {
                $('#list3').hide();
            });
            $('#list3').hover(function () {
                $('#list3').show();
            }, function () {
                $('#list3').hide();
            });


            $('#head4').hover(function () {
                $('#list4').show();
            }, function () {
                $('#list4').hide();
            });
            $('#list4').hover(function () {
                $('#list4').show();
            }, function () {
                $('#list4').hide();
            });
        });
    </script>
</head>
<%--时钟--%>
<body onload="getTimeNow()">

<%--购物车--%>
<div class="row ">
    <div class="col-md-1 column">
    </div>
    <div class="col-md-10 column">
        <div class="info col-md-offset-7">
            <ul>
                <li><a href="#"><img src="image/购物车图标.png" alt="">购物车</a></li>
                <li><a href="#"><img src="image/帮助中心图标.png" alt="">帮助中心</a></li>
                <%--<li><a href="#"><img src="image/加入收藏图标.png" alt="">加入收藏</a></li>--%>
                <li><a href="#"><img src="image/设成首页图标.png" alt="">设为首页</a></li>
                <li><a href="front/login.jsp" class="btn btn-xs btn-info">登陆</a></li>
                <li><a href=" " class="btn btn-xs btn-warning">注册</a></li>
            </ul>
        </div>
    </div>
    <div class="col-md-1 column">
    </div>
</div>

<%--logo 搜索框--%>
<div class="row">
    <div class="col-md-2 column">
    </div>
    <div class="col-md-8 column">
        <div class="header sea">
            <%--logo 图片--%>
            <div class="logo">
                <img src="image/logo.jpg" alt="">
            </div>
            <div class="head-logo">
                <img src="image/head_logo2.png" alt="">
            </div>
        </div>
        <div class="col-md-offset-9">
            <%--时间--%>
            <div><span id="clock" onload="time()"></span></div>
        </div>
    </div>
    <div class="col-md-1 column">
    </div>
</div>

<%--导航栏--%>
<div class="row" style="background-color: purple;">
    <div class="col-md-2"></div>
    <div class="col-md-8">
        <div class="head-font-color">
            <ul class="nav nav-tabs">
                <li><a href="#">首页</a></li>
                <li><a href="#" class="jia" id="head1">家用电器</a></li>
                <li><a href="#" id="head2">服饰箱包</a></li>
                <li><a href="#" id="head3">手&nbsp;&nbsp;&nbsp;&nbsp;机</a></li>
                <li><a href="#" id="head4">数&nbsp;&nbsp;&nbsp;&nbsp;码</a></li>
                <li><a href="#">帮助中心</a></li>
                <li><a href="#">免费开店</a></li>
                <li><a href="#" id="tip">全球咨询</a>
                </li>
                <%--搜索框--%>
                <li>
                    <form action="">
                        <div class="sea">
                            <div class="form-group">
                                <input type="text" class="form-control btn-search2" style="border:2px solid #FF5000"
                                       name="xx" placeholder="  Search for...">
                            </div>
                            <div class="form-group">
                                <button type="submit " class=" btn-search">搜索</button>
                            </div>
                        </div>
                    </form>
                </li>
            </ul>
        </div>
    </div>
    <div class="col-md-1"></div>
</div>


<div class="row">
    <%--家电详情--%>
    <div class="col-md-offset-2 fornt-list">
        <div class="list1" id="list1">
                <div class="row">
                    <c:forEach var="item" items="${list1}" >
                        <div class="col-md-4"><h4><a href="#">${item.ctgrName}</a></h4></div>
                    </c:forEach>
                </div>
        </div>
    </div>
    <%--服饰箱包详情--%>
    <div class="col-md-offset-3 fornt-list">
        <div class="list1" id="list2">
                <div class="row">
                    <c:forEach var="item" items="${list2}" >
                        <div class="col-md-4"><h4><a href="#">${item.ctgrName}</a></h4></div>
                    </c:forEach>
                </div>
        </div>
    </div>
    <%--手机详情--%>
    <div class="col-md-offset-3 fornt-list">
        <div class="list1" id="list3">
            <div class="row">
                <c:forEach var="item" items="${list3}" >
                    <div class="col-md-4"><h4><a href="#">${item.ctgrName}</a></h4></div>
                </c:forEach>
            </div>

        </div>
    </div>
    <%--数码详情--%>
    <div class="col-md-offset-4 fornt-list">
        <div class="list1" id="list4">
            <div class="row">
                <c:forEach var="item" items="${list4}" >
                    <div class="col-md-4"><h4><a href="#">${item.ctgrName}</a></h4></div>
                </c:forEach>
            </div>
        </div>
    </div>
</div>



<script src="js/bootstrap.js"></script>

<!-- 背景动画 -->
<canvas id="c_n9" width="1920" height="990" style="position: fixed; top: 0px; left: 0px; z-index: -1; opacity: 0.5;"></canvas>
<script src="https://files.cnblogs.com/files/jingmoxukong/canvas-nest.min.js"></script>

</body>

</html>
